#ifndef _APP_WORKMODE_H_
#define _APP_WORKMODE_H_

enum
{
    SYS_WM_BT_MODE = 0,
    SYS_WM_SD_MUSIC_MODE,

#ifdef CONFIG_APP_USB_DISK
    SYS_WM_UDISK_MODE,
#endif

    SYS_WM_NULL,
    XZX_S10_LINEIN_MODE
};

//default vol is 8,  but 12 for linein becasue 8 is lower
#define PLAYER_VOL_MEDIUM 8
#define PLAYER_VOL_MEDIUM_LINEIN 12
#define PLAYER_VOL_MEDIUM_HFP 13

extern int8_t player_vol_bt;
extern int8_t player_vol_hfp;
extern int8_t player_vol_music;
extern int8_t player_vol_fm;
extern int8_t player_vol_linein;

uint8_t app_check_bt_mode(uint8_t mode);
uint8_t get_bt_dev_priv_work_flag(void);

//uint32_t SD_Fs_Init(void);
void exit_work_mode(uint32_t mode);
void system_mode_shift_for_sd_change(void);
uint32_t app_is_mp3_mode(void);
uint32_t app_is_bt_mode(void);

void enter_work_mode(void);
int system_work_mode_change_button(void);
unsigned int get_app_mode();
unsigned int get_bt_mode();
void set_bt_mode(unsigned int);
void app_incoming_call_enter(void);
void app_incoming_call_exit(void);

void app_bt_enable_dut_mode(int8_t enable);
void app_bt_enable_fcc_mode(int8_t enable, uint8_t chnl);
void app_bt_enable_qos(uint8_t enable);

#endif
